package com.jarvis.zeng.design.pattern.decorator.listsort;

import java.util.Comparator;
import java.util.List;

/**
 * 根据性排序
 */
public class SortingSetsBySex implements SortingWithSets {
 
	@Override
	public void sortingSets(List<User> list) {
		list.sort(Comparator.comparing(user->((User)user).getSex()).reversed());
	}
 
}